<me:UIAE03 x:Class="WPFExcelReport.TSAE04"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:AM="clr-namespace:WPFExcelReport;assembly=TAMSTAMM"
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIAE03.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:SDKEYCONV x:Key="sd"/>
    </me:UIAE03.Resources>
    <WrapPanel >
        <Button  Grid.Column="1" Click="ManageCommand" 
                 Width="16" Height="16" HorizontalAlignment="Left" 
                 Visibility="{Binding IsMaster,Converter={StaticResource bv}}" >
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button> 
        <TextBlock Text="{Binding Source={Localization:Translate Word=标准工艺:}}"/>
        <ComboBox Grid.Row="0" Grid.Column="1"
                  DropDownOpened="ComboBox_DropDownOpened" 
                       Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                       IsEditable="True" 
                        Width="100" 
                       SelectedValuePath="KEY"
                       DisplayMemberPath="DES"
                      ItemsSource="{Binding Source={StaticResource vwMaster }}" 
                      IsSynchronizedWithCurrentItem="True" 
                 >
        </ComboBox  >
        <TextBlock Text="{Binding MEKBEM1,Converter={StaticResource gb2312}}" Width="150"/>
    </WrapPanel>
</me:UIAE03>
